package com.dl.ribbonconfig;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: user
 * @Date: 2021/8/31 11:16
 * @Description:负载均衡策略随机
 */

//@Configuration
//public class RibbonConfig {
//    @Bean
//    public IRule ribbonRule(){
//        // 随机的负载均衡策略对象
//        return new RandomRule();
//    }
//}
